package com.dhcc.logs.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dhcc.logs.dao.LogDao;
import com.dhcc.logs.entity.SysOperLog;
import com.dhcc.logs.service.LogService;

/**
* <p>标题: LogServiceImpl.java</p>
* <p>业务描述:健康管理平台</p>
* <p>公司:东华软件股份公司</p>
* <p>版权:dhcc2013</p>
* @author 胡凯
* @date 2019年9月6日
* @version V1.0 
*/
@Service
public class LogServiceImpl implements LogService{

	@Autowired
	private LogDao logDao;
	@Override
	public void save(SysOperLog sysOperLog) {
		logDao.save(sysOperLog);
	}

	@Override
	public void update(SysOperLog sysOperLog) {
		logDao.save(sysOperLog);
	}

	@Override
	public SysOperLog findById(String id) {
		return logDao.findById(id).get();
	}

	@Override
	public List<SysOperLog> findAll() {
		return logDao.findAll();
	}

	@Override
	public void deleteById(String id) {
		logDao.deleteById(id);
	}

}
